Creating Data Sources

tomee.xml is the file where all the data sources, JMS configurations are made. Any data source, which is needed by an application to run, has to be configured in this file. ServiceLayer requires SERVICEDATASOURCE data source to be created.

Sample configuration of all the data sources which are required for Service Layer to run:

tomee.xml

<?xml version="1.0" encoding="UTF-8"?>

<tomee>

<!-- see http://tomee.apache.org/containers-and-resources.html -->

<!-- activate next line to be able to deploy applications in apps -->

<!-- <Deployments dir="apps" /> -->

<Resource id="SERVICEDATASOURCE" type="javax.sql.DataSource">

jdbcDriver = oracle.jdbc.driver.OracleDriver

jdbcUrl = jdbc:oracle:thin:@localhost:1521:orcl

userName = <User>

password = <Pwd>

jtaManaged = false

</Resource>

</tomee>